﻿package mortal.common.swfPlayer.data
{

    public class ModelType extends Object
    {
        public var type:String;
        public var dataClass:Class;
        public static var Attack:ModelType = new ModelType("attack", MovieClipData);
        public static var SwimSwf:ModelType = new ModelType("swim", MovieClipData);
        public static var Stall:ModelType = new ModelType("stall", MovieClipData);
        public static var SunBath:ModelType = new ModelType("sunBath", MovieClipData);
        public static var NPCStatus:ModelType = new ModelType("npcStatus", SWFMovieClipData);
        public static var LevelUp:ModelType = new ModelType("level", SWFMovieClipData);
        public static var NormalSwf:ModelType = new ModelType("normalSwf", SWFMovieClipData);
        public static var DirSkill:ModelType = new ModelType("dirSkill", MovieClipData);
        public static var GuidePath:ModelType = new ModelType("guidePath", MovieClipData);
        public static var Fly:ModelType = new ModelType("fly", MovieClipData);
        public static var WXSkillEffect:ModelType = new ModelType("wxSkillEffect", MovieClipData);
        public static var WXPlayer:ModelType = new ModelType("wxPlayer", SWFMovieClipData);
        public static var FabaoPlayer:ModelType = new ModelType("fabaoPlayer", SWFMovieClipData);

        public function ModelType(param1:String, param2:Class)
        {
            this.type = param1;
            this.dataClass = param2;
            return;
        }// end function

        public function getMovieClipData() : IMovieClipData
        {
            return new this.dataClass(this.type);
        }// end function

    }
}
